package com.winning.java.action;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;

import java.io.Console;

/**
 * @author: rqx
 * @create: 2023/6/5 10:20
 * @description:
 */
@Data
@Slf4j
public class BaseAction implements IEat, ICatch {
    private String name;

    public BaseAction() {
    }

    public BaseAction(String name) {
        this.name = name;
    }

    public void Info(BaseAction obj) {
        log.info("the {}", name);
        eat(obj);
        var str = catchObj(obj);
        log.info(str);
    }
}
